In chemistry, the valence (US spelling) or valency (British spelling) of an element is the measure of its combining capacity with other atoms when it forms chemical compounds or molecules.